import Vue from 'vue'
import Vuex from 'vuex'
import persistedState from 'vuex-persistedstate'

import user from './module/user'
import cart from './module/cart'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {},
  mutations: {},
  actions: {},
  modules: {
    user,
    cart
  },
  plugins: [persistedState({ key: 'erabbit-client-pc-store' })]
})
